Back to Main Menu

Delete Document

Introduction

Documents and Document Links can be deleted from Assetic via the API DELETE /api/v2/document/{id} where {id} is the document GUID.

 

The GUID of the file may be already be known or it may be obtained via the document metadata search API GET /api/v2/document as described in the Assetic Knowledge Base article Document Metadata Search.

Outcomes

When a document is deleted it is no longer visible in the Assetic UI, however, its metadata is retained and remains accessible via the available Document Metadata APIs.

Document

The document is removed from the Assetic platform and cannot be recovered.

Document Link

A document link is a metadata record without any file content.  The status of the record metadata is changed to indicate it is deleted.

Document Metadata

When a document is deleted the document metadata is retained in Assetic with a new status.

 

The "Status" returned by the document metadata search will be the integer 500.  An active document has the status 300.

Sample Request

The following DELETE request will delete from Assetic the document with GUID "2d0328bf-dc36-4d0c-90fc-9c6472c7039e".

https://XXX.assetic.net/api/v2/document/2d0328bf-dc36-4d0c-90fc-9c6472c7039e

Response

If successful there is no response body.

 

The response code is 200.